
    <style type="text/css">
    	*{margin: 0 0;padding: 0 0;}
    	#megBox {
    		width: 100%;
    		height: 100%;
    		padding: 200px 0;
    		/*background: rgba(0,0,0,.5);*/
    		overflow: hidden;
    	}
    	.system-message{
    		margin: 0 auto;
    		width: 450px;
    		border: 2px solid #00AA00;
    	}
    	.success,.error{
    		width: 450px;
    		text-align: center;
    		font-size: 25px;
    		padding: 25px 0;
    		border-bottom: 2px solid #CCCCCC;
    	}
    	.jump{
    		margin: 10px 0;
    	}
    	.jump a{
    		display: block;
    		width: 80px;
    		line-height: 35px;
    		background: #00AA00;
    		border-radius: 5px;
    		text-decoration: none;
    		color: black;
    		text-align: center;
    		margin: 0 auto;
    		color: white;
    	}
    	.jump a:hover{
    		background: blue;
    	}
    	#megBox h4{
    		float: left;
    		line-height: 35px;
    		padding: 0 0;
    		margin: 0 0;
    	}
    	.prompt {
    		background-color:#C0C0C0;
    		width: 445px;
    		height: 35px;
    		color: white;
    		padding-left: 5px;
    	}
    </style>
</head>
<body>
	<div id="megBox">
	    <div class="system-message">
	        <?php switch ($code) {?>
	            <?php case 1:?>
	            <div class="prompt"><h4>提&nbsp;&nbsp;示</h4></div>
	            <p class="success"><?php echo(strip_tags($msg));?></p>
	            <?php break;?>
	            <?php case 0:?>
	            <div class="prompt"><h4>提&nbsp;&nbsp;示</h4></div>
	            <p class="error"><?php echo(strip_tags($msg));?></p>
	            <?php break;?>
	        <?php } ?>
	        <p class="detail"></p>
	        <p class="jump">
	            <a id="href" href="<?php echo($url);?>">确&nbsp;定</a>
	        </p>
	        <b id="wait" style="opacity: 0;"><?php echo($wait);?></b>
	    </div>
	</div>
    <script type="text/javascript">
        (function(){
            var wait = document.getElementById('wait'),
                href = document.getElementById('href').href;
            var interval = setInterval(function(){
                var time = --wait.innerHTML;
                if(time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                };
            }, 300);
        })();
    </script>
